package cn.hznc.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Getter;
import lombok.Setter;

/**
 * 工单物料
 *
 * @Author Administrator
 * @Date 2023/3/20 9:34
 */
@Getter
@Setter
@Table(name = "t_order_bom")
@TableName(value = "t_order_bom")
public class OrderBomEntity {
    @Column(name = "id",type = MySqlTypeConstant.INT,length = 11,isKey = true,isAutoIncrement = true)
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 工单编码
     */
    @Column(name = "order_id",type = MySqlTypeConstant.INT,length = 11)
    @TableField("order_id")
    private Integer orderId;

    /**
     * 工单编码
     */
    @Column(name = "task_id",type = MySqlTypeConstant.VARCHAR,length = 200)
    @TableField("task_id")
    private String taskId;



    /**
     * 图号
     */
    @Column(name = "figure_no", type = MySqlTypeConstant.VARCHAR, length = 200)
    @TableField(value = "figure_no")
    private String figureNo;

    /**
     * 物料参数
     */
    @Column(name = "bom_param", type = MySqlTypeConstant.TEXT)
    @TableField(value = "bom_param")
    private String bomParam;
}
